package gamagora.game.map.backgrounds
{
	import gamagora.game.animations.OSMonkey;
	import gamagora.game.animations.OSBird;
	import gamagora.game.animations.OSAnimation;
	import gamagora.game.map.OSBackground;
	import gamagora.game.utils.OSImages;
	
	public class OSBackground4 extends OSBackground
	{
		public function OSBackground4(SimpleGraphic:Class=null)
		{
			super(OSImages.E1P2);
			
		}
		
		protected override function create(animations:Vector.<OSAnimation>):void
		{
			var monkey1:OSMonkey = new OSMonkey(340, 943, OSAnimation.BACKGROUND3);
			var monkey2:OSMonkey = new OSMonkey(400, 930, OSAnimation.BACKGROUND3);
			var monkey3:OSMonkey = new OSMonkey(640, 943, OSAnimation.BACKGROUND3);
			var monkey4:OSMonkey = new OSMonkey(470, 925, OSAnimation.BACKGROUND3);
			var monkey5:OSMonkey = new OSMonkey(550, 900, OSAnimation.BACKGROUND3);
			var monkey6:OSMonkey = new OSMonkey(590, 920, OSAnimation.BACKGROUND3);
			
			var monkey7:OSMonkey = new OSMonkey(760, 950, OSAnimation.BACKGROUND3);
			var monkey8:OSMonkey = new OSMonkey(820, 900, OSAnimation.BACKGROUND3);
			var monkey9:OSMonkey = new OSMonkey(700, 920, OSAnimation.BACKGROUND3);
		
			monkey1.moveTo(540);
			monkey2.moveTo(610);
			monkey3.moveTo(670);
			monkey4.moveTo(700);

			animations.push(monkey1);
			animations.push(monkey2);
			animations.push(monkey3);
			animations.push(monkey4);
			animations.push(monkey5);
			animations.push(monkey6);
			animations.push(monkey7);
			animations.push(monkey8);
			animations.push(monkey9);
			
			
			// Oiseau de map
			animations.push(new OSBird(344, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(364, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(384, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(414, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(444, 1000, OSAnimation.BACKGROUND1));
			animations.push(new OSBird(464, 1000, OSAnimation.BACKGROUND2));
			
			
			
			
			animations.push(new OSBird(374, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(394, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(444, 1000, OSAnimation.BACKGROUND1));
			animations.push(new OSBird(484, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(504, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(534, 1000, OSAnimation.BACKGROUND1));
		}
	}
}